/**
 * Created by shandianhaizan on 16/7/14.
 */
var AV = require('leanengine');
var model = {};

model.name = 'Rebeat';



model.getQuery = function(){
    return new AV.Query(model.name);
};

model.formatQuery = function(arg_query, arg_params) {
    return arg_query;
};




model.getObject = AV.Object.extend(model.name);




//Todo check param valid
model.validation  = function(params){
    if(params.startTime) params.startTime = new Date(params.startTime);
    if(params.endTime) params.endTime = new Date(params.endTime);
    return {success:true};
};



module.exports = model;